/**
 *  iBizSys 5.0 机器人生产代码（不要直接修改当前代码）
 *  http://www.ibizsys.net
 */
package com.sa.litetwo.app.card.ctrlhandler;


import java.util.ArrayList;
import java.util.List;
import net.ibizsys.paas.util.StringHelper;
import net.ibizsys.paas.web.WebContext;
import net.ibizsys.paas.demodel.DEModelGlobal;
import net.ibizsys.paas.demodel.IDataEntityModel;
import net.ibizsys.paas.service.IService;
import net.ibizsys.paas.service.ServiceGlobal;

import com.sa.litetwo.app.srv.card.ctrlmodel.GG_CARDMobMOBMDCTRLModel;
import com.sa.litetwo.srv.card.demodel.GG_CARDDEModel;
import com.sa.litetwo.srv.card.service.GG_CARDService;
import com.sa.litetwo.srv.card.dao.GG_CARDDAO;
import com.sa.litetwo.srv.card.entity.GG_CARD;

import net.ibizsys.paas.core.DEDataSetFetchContext;
import net.ibizsys.paas.ctrlmodel.IListModel;
import net.ibizsys.paas.db.DBFetchResult;
import net.ibizsys.paas.web.AjaxActionResult;
import net.ibizsys.paas.web.MDAjaxActionResult;
import net.ibizsys.paas.entity.IEntity;

/**
 * 列表控件后台处理基类
 */
public class GG_CARDMobListViewMdctrlHandler extends net.ibizsys.paas.ctrlhandler.ListHandlerBase{
    protected GG_CARDMobMOBMDCTRLModel listModel = null;
    public GG_CARDMobListViewMdctrlHandler()  {
        super();
    }

     @Override
    protected void onInit() throws Exception
    {
        listModel = (GG_CARDMobMOBMDCTRLModel)this.getViewController().getCtrlModel("mdctrl");
    	super.onInit();
     }

       @Override
	protected IListModel getListModel()
	{
		return this.getRealListModel();
	}
    
    protected GG_CARDMobMOBMDCTRLModel getRealListModel(){
    	return this.listModel;
    }

       protected GG_CARDService getRealService(){
            return (GG_CARDService)this.getService();
       }


      @Override
	protected DBFetchResult fetchDEDataSet(DEDataSetFetchContext deDataSetFetchContext) throws Exception
	{
              return  this.getRealService().fetchDefault(deDataSetFetchContext);
	}



}